home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / utilitys / 483 / ddhelp / editing.hlp < prev    next >
Encoding:
Text File  |  1991-05-30  |  5.3 KB  |  133 lines

  1.  
  2.  
  3.                                 The Disk Doctor
  4.  
  5.  
  6.  
  7.          Editing a File or Disk
  8.  
  9.               Disk Doctor allows you to change bytes in a sector, then
  10.          save that sector back to disk. This is very powerful and you
  11.          can damage your files, so make sure you know what you are
  12.          doing first. It's one thing to alter the text in a file,
  13.          quite another to alter the code stored there.
  14.  
  15.  
  16.               When you have a sector displayed (from either an open
  17.          disk or file), use the mouse to move the cursor to any byte
  18.          on the screen. Click the mouse button at the desired byte and
  19.          the character will highlight (invert its color). Note that a
  20.          hexadecimal display has two characters in each byte but an
  21.          ASCII character is alone in a byte, since it is a
  22.          representation of a hexadecimal character. If you toggle
  23.          between display modes, you'll see what we mean.
  24.  
  25.  
  26.          To change the character at the cursor, simply type in a new
  27.          character from the keyboard. You can continue to enter
  28.          characters by typing and the new characters will overwrite
  29.          what was in the byte previously and then move to the next
  30.          character or byte to the right. In other words, what you type
  31.          overwrites much like a typewriter. The arrow keys will also
  32.          move you around the screen but neither insert, delete nor
  33.          backspace work.
  34.  
  35.               There are differences between changing character and hex
  36.          displays. You can enter anything from the keyboard as a
  37.          character (including the space bar) and it will overwrite the
  38.          entire byte, even if what was there originally was a
  39.          greyed-out hex number. If you enter a numerical value such as
  40.          1, 2, 3 etc. in the character display, it appears on the hex
  41.          display as its hexadecimal equivalent - 31, 32, 33 etc.
  42.  
  43.  
  44.               In the hex display you can change either character in a
  45.          byte but you can only enter a single numerical value or the
  46.          letters A through F. This is to maintain the hex display
  47.          format. If you don't understand hexadecimal or how it
  48.          translates to ASCII, we recommend you read up on the topic
  49.          before altering any bytes! Although you CAN change either
  50.          value in a byte, you MUST enter both, even if it's only to
  51.          enter the same value as is already shown. Disk Doctor accepts
  52.          only the FULL byte as an entry in either mode.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                                 Editing: Page 6
  65.  
  66.  
  67.  
  68.  
  69.                                 The Disk Doctor
  70.  
  71.  
  72.               Understand too that simply because a hex value
  73.          translates to a recognizeable text character that it doesn't
  74.          mean the byte contains text. It could be part of a machine
  75.          language code that coincidentally translates to something in
  76.          the ASCII range. If it looks like gibberish in the text
  77.          screen, it probably is code, not text and shouldn't be
  78.          changed unless you know what you're doing.
  79.  
  80.  
  81.               If you're doing this for the first time, here's a
  82.          suggestion. First locate a blank (empty) sector on the disk.
  83.          Copy the sector you want to change into the buffer then go to
  84.          that empty sector, retrieve it and write it back to disk.
  85.          This saves a copy of the sector in its original state so you
  86.          can always restore it later. If you make a mistake, you can
  87.          reverse the process and rewrite the saved sector back and
  88.          undo any damage you may have done.
  89.  
  90.  
  91.               Once you've changed a byte, you have several options.
  92.          You can press the Undo key (or select Undo from the sector
  93.          menu) which restores the changed bytes to their originals
  94.          since the last read or write operation. You can save the
  95.          displayed sector to disk, which writes the entire sector back
  96.          to disk. Or you can close the disk or file and choose then to
  97.          save or cancel the changes.
  98.  
  99.  
  100.               Sectors can be copied from one to another, one at a
  101.          time, by using the sector buffer. You can also print the
  102.          contents of the sector and search for various combinations of
  103.          numbers or characters. All this is explained in the menu help
  104.          files.
  105.  
  106.  
  107.               Disk Doctor stores information in memory about a disk.
  108.          In order to update this information properly, always close a
  109.          disk after you write sector zero to it and then re-open it if
  110.          you want to continue editing it. You don't need to do this if
  111.          you change any other sectors, only sector zero.
  112.  
  113.  
  114.               A caution: some versions of TOS are case sensitive and
  115.          don't like to deal with lowercase letters in filenames in the
  116.          directory. Avoid using lowercase and you won't have any
  117.          problems. Be careful when changing bytes in the directory and
  118.          FAT; if you alter the forward pointers to the wrong clusters
  119.          you may not be able to use those files again until you
  120.          restore the links properly.
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.                                 Editing: Page 7
  131.  
  132.